
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// //店端 保险理赔统计报表新增数据
// export const getBrandLists = params => axios.post(`${SERVER.WHOLESALES}/rights/queryRights`, params);
// ///rights/queryRightsStatus 获取状态
// export const getStatus = params => axios.post(`${SERVER.WHOLESALES}/rights/queryRightsStatus`, params);
// ///rights/queryRightsStatus 获取状态
// export const getSchedule = params => axios.get(`${SERVER.CMS_WMS}/equity/tram/getPocess/${params.xsddhm}`);



//店端 获取权益类型
export const getBrandLists = params => axios.post(`${SERVER.WHOLESALES}/rights/queryRights`, params);
///rights/queryRightsStatus 获取状态
export const getStatus = params => axios.post(`${SERVER.WHOLESALES}/rights/queryRightsStatus`, params);
///rights/queryRightsStatus 获取权益进度
export const getSchedule = params => axios.get(`${SERVER.CMSCLOUD_WMS}/equity/tram/getPocess/${params.xsddhm}`);
//新增权益的接口 saveEquity
export const saveEquity = params => axios.post(`${SERVER.WHOLESALES}/rights/insertOrderRights`, params );
// 主查询页面查询
export const queryOrderRights = params => axios.post(`${SERVER.WHOLESALES}/rights/queryOrderRights`, params );
//导出
export const getListForExportChang = params => axios.post(`${SERVER.WHOLESALES}/rights/getListForExportChang`, params, {
  responseType:'blob'} );
